* {
    margin: 0;
    padding: 0;
}

body {
    margin: 0 auto;
    width: 100%;
    max-width: 640px;
    min-width: 302px;
    font-family: -apple-system, Helvetica, sans-serif;
}

li {
    list-style: none;
}

img {
    vertical-align: top;
}

a {
    text-decoration: none;
}

.clearfix:before,
.clearfix:after {
    content: "";
    display: table;
}

.clearfix:after {
    clear: both;
}

.clearfix {
    *zoom: 1;
}

.app {
    height: 45px;
    background-color: #333333;
}

.app ul li {
    float: left;
    height: 45px;
    text-align: center;
    line-height: 45px;
    color: white;
    font-size: 14px;
}

.app ul li:nth-of-type(1) {
    width: 8%;
    background: url(../images/close.png) no-repeat center center;
    background-size: 10px;
}

.app ul li:nth-of-type(2) {
    width: 10%;
    background: url(../images/logo.png) no-repeat center center;
    background-size: 30px;
}

.app ul li:nth-of-type(3) {
    width: 57%;
}

.app ul li:nth-of-type(4) {
    width: 25%;
    background-color: #f63515;
}

/* 搜索栏 */
.search-wrap {
    position: fixed;
    z-index: 999;
    overflow: hidden;
    width: 100%;
    height: 44px;
    min-width: 320px;
    max-width: 640px;

}

.search-btn {
    position: absolute;
    top: 0;
    left: 0;
    width: 40px;
    height: 44px;
}

.search-btn::before {
    content: "";
    display: block;
    width: 20px;
    height: 18px;
    background: url(../images/s-btn.png) no-repeat;
    background-size: 20px 18px;
    margin: 14px 0 0 15px;
}

.search-login {
    position: absolute;
    right: 0;
    top: 0;
    width: 40px;
    height: 44px;
    color: #fff;
    line-height: 44px;
}

.search {
    position: relative;
    margin: 7px 50px 0;
    height: 30px;
    background-color: white;
    border-radius: 15px;
}

.jd-icon {
    position: absolute;
    padding-right: 10px;
    top: 7.5px;
    left: 15px;
    width: 20px;
    height: 15px;
    background: url(../images/jd.png) no-repeat center center;
    background-size: 20px 15px;
    border-right: 2px solid #ebebeb;
}

.search input {
    border: 0;
    outline: none;
}

.sou {
    position: absolute;
    top: 7.5px;
    left: 55px;
    width: 18px;
    height: 15px;
    background: url(../images/jd-sprites.png) no-repeat -83px 0;
    background-size: 200px 200px;
}

.search-content {
    position: absolute;
    top: 0;
    right: 0;
    margin-left: 75px;
    height: 30px;
    width: 73%;
    font-size: 13px;
    box-sizing: border-box;
    border-top-right-radius: 15px;
    border-bottom-right-radius: 15px;
}

/* 主体部分 */
.main-content {
    position: relative;
}

.slider img {
    width: 100%;
}

.brand {
    position: absolute;
    top: 175px;
    overflow: hidden;
    border-radius: 10px 10px 0 0;
}

.brand div {
    float: left;
    width: 33.333%;
}

.brand div img {
    width: 100%;
}

/* 导航栏 */

.nav {
    margin-top: 92px;
    width: 100%;
}

.nav ul li {
    margin-top: 20px;
    float: left;
    width: 20%;
    text-align: center;
}

.nav ul li a {
    display: block;
    width: 100%;
}

.nav ul li a img {
    width: 40px;
}

.nav ul li a span {
    display: block;
    margin-top: 10px;
    font-size: 14px;
    color: #666;
}

/* 新闻模块 */
.news {
    margin-top: 20px;
}

.news a {
    display: block;
    float: left;
    box-sizing: border-box;
}

.news a:nth-of-type(1) {
    width: 50%;
}

.news a:nth-of-type(n+2) {
    width: 25%;
    border-left: 1px solid #ccc;
}

.news a img {
    width: 100%;
}

.swiper {
    width: 100%;
    height: 100%;
}

.swiper-slide {
    text-align: center;
    font-size: 18px;
    background: #fff;

    /* Center slide text vertically */
    display: -webkit-box;
    display: -ms-flexbox;
    display: -webkit-flex;
    display: flex;
    -webkit-box-pack: center;
    -ms-flex-pack: center;
    -webkit-justify-content: center;
    justify-content: center;
    -webkit-box-align: center;
    -ms-flex-align: center;
    -webkit-align-items: center;
    align-items: center;
}

.swiper-slide img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}